package actions 
{
	import com.greensock.TweenLite;
	import view.popup.Popup;
	/**
	 * ...
	 * @author Johnny Cheng
	 */
	public class FadeOut 
	{
		
		public function FadeOut(popup:Popup) 
		{
			TweenLite.to(popup, 0.4, { alpha:0, onComplete:function():void {
				popup.alpha = 1;
				popup.removeSelf();
			}});
		}
		
	}

}